package com.ziyun.pop.modules.storeFavouredPrice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.storeFavouredPrice.entity.StoreFavouredPriceDetailEntity;
import com.ziyun.pop.modules.storeFavouredPrice.entity.StoreFavouredPriceEntity;
import io.renren.common.utils.R;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 门店价格账套
 * 
 * @author jiangli
 * @email 
 * @date 2018-09-25 15:04:37
 */
public interface StoreFavouredPriceDao extends BaseMapper<StoreFavouredPriceEntity> {

    int deleteByIds(@Param("favouredIds")Long[] favouredIds, @Param("sellerId") Long sellerId);

    List<StoreFavouredPriceDetailEntity> getDetailData(@Param("favouredId")Long favouredId,@Param("sellerId")Long sellerId);

    BigDecimal getDiscountRateByMemberId(@Param("map") Map<String,Object> map);

}
